package com.daylightrobbery.server.packet.game.chance;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class CreateChancePacketResp implements RoomDataPacket {
    public static int type = 70002;
    public String uid;
    public int roomId;
    public int pathIndex;
    public String syncId;

    public int chanceType; // 机会卡片类型
    public String msg; // 卡片消息
    public boolean playerGet; // 获得金币/丢失金币
    public int money; //金钱数额


    @Override
    public DataPacket process() {
        return null;
    }

    @Override
    public int getType() {
        return type;
    }

    @Override
    public int getRoomId() {
        return roomId;
    }

    public String getUid() {
        return uid;
    }

    public CreateChancePacketResp setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public CreateChancePacketResp setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getPathIndex() {
        return pathIndex;
    }

    public CreateChancePacketResp setPathIndex(int pathIndex) {
        this.pathIndex = pathIndex;
        return this;
    }

    public String getSyncId() {
        return syncId;
    }

    public CreateChancePacketResp setSyncId(String syncId) {
        this.syncId = syncId;
        return this;
    }

    public int getChanceType() {
        return chanceType;
    }

    public CreateChancePacketResp setChanceType(int chanceType) {
        this.chanceType = chanceType;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public CreateChancePacketResp setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public boolean isPlayerGet() {
        return playerGet;
    }

    public CreateChancePacketResp setPlayerGet(boolean playerGet) {
        this.playerGet = playerGet;
        return this;
    }

    public int getMoney() {
        return money;
    }

    public CreateChancePacketResp setMoney(int money) {
        this.money = money;
        return this;
    }
}
